
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.System;

public interface SystemDao extends Dao {

    /**
     * Retrieves all of the systems
     */
    public List getSystems(System system);

    /**
     * Gets system's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the system's id
     * @return system populated system object
     */
    public System getSystem(final Long id);

    /**
     * Saves a system's information
     * @param system the object to be saved
     */    
    public void saveSystem(System system);

    /**
     * Removes a system from the database by id
     * @param id the system's id
     */
    public void removeSystem(final Long id);
}

